<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
	function useradd(){
		submitForm("formtable", "user/userAdd", "closeCurrentTab()");
	}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="formtable" >
				<ui:textinput id="user.login_id" label="登录名" dataOptions="required:true"/>
				<ui:textinput id="user.password" label="密码" password="true" dataOptions="required:true"/>
				<ui:textinput id="user.name" label="姓名" dataOptions="required:true"/>
				<ui:nextline/>
				<ui:dropdown id="user.roleid" dsCode="dsRole" required="true" label="角色"></ui:dropdown>				
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="useradd()" icon="icon-ok" value="新增"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
